<template>
  <view class="su-body" :style="{padding:padding}">
    <slot></slot>
    <view class="su-body-end" v-if="end">
      - 到底了 -
    </view>
  </view>
</template>

<script>
  export default {
    name: "su-body",
    props: {
      padding: {
        type: String,
        default: '0 0 0 0'
      },
      // 到底了提示
      end: {
        type: [Boolean, Number, String],
        default: false
      }
    }
  }
</script>

<style lang="scss">
  .su-body {
    position: relative;
    z-index: 2;
    padding-bottom: 100upx !important;

    &-end {
      height: 100upx;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20upx;
      color: #ddd;
    }
  }
</style>
